/**
 * @Description:
 * @author 若琳
 * @date 2021/8/14
*/


const {MYSQL}  = require("../../../../../../../../ruoling-common/src/com/ruoling/common/config/mysqlconfig.js");
const Pager_DB = require("../../../../../../../../ruoling-common/src/com/ruoling/common/table/Pager_DB.js");

module.exports = class UserLogService{

    static async UserLoginLogListService(limit,page,sys_login_state,start_time,end_time,callback){

        try{
            let pagerdb = await new Pager_DB(limit,page).table("rl_sys_login_info")
                .and({"key":"sys_login_state","value":sys_login_state})
                .and({"key":"sys_login_time","value":start_time,"on":">="})
                .and({"key":"sys_login_time","value":end_time,"on":"<="})
                .order("ID","DESC")
                .select();
            callback(null,pagerdb);
            return;
        }catch (e){
            callback(e);
            return;
        }
    };


}